package roborally;

/**
 * A class of terminateable that holds all items that can be terminated.
 *
 * @version  2.90
 * @author   Michiel Ruelens & Dieter Naten
 */
public class Terminateable {
	
	private boolean isTerminated;
	
	/**
	 * Initializes the new object of the class Terminateable.
	 * 
	 * @post (new this).isTerminated == false
	 */
	public Terminateable(){
		this.isTerminated = false;
	}
	
	/**
	 * This method will return if the object is terminated.
	 */
	public boolean isTerminated() {
		return isTerminated;
	}
	
	/**
	 * This method serves to terminate the board.
	 * 
	 * @post | (new this).isTerminated = true
	 */
	public void terminate() {
		this.isTerminated = true;
	}

}
